﻿@{
    ViewData["Title"] = "PDF合并";

}

<div class="content">
    <div class="content-body">
        <div class="tool-title clearfix">
            <h1 class="tool-name">PDF合并</h1>
        </div>
        <div class="tool-form">
            <div class="alert-msg alert alert-danger tp10" style="display:none;">
                请选择pdf
            </div>
            <form asp-action="updatepdfmerge" asp-controller="pdf"
                  enctype="multipart/form-data" data-ajax="true" data-ajax-success="PDFToImageOnSuccess" data-ajax-failure="onFailed" data-ajax-method="post">
                <div class="img-select" style="border:1px solid #bfbfbf;">
                    <img src="/images/add.png" id="qr-canvas" width="140" height="140" alt="选择pdf" />
                    <input type="file" name="files" accept="application/pdf" onchange="PDFMergeUpload(this)" title="选择pdf" multiple>
                    <p class="pdf-name" style="margin-top:10px;"></p>
                </div>
                <div class="img-select" style="">
                    <div class="wp100 tp10">
                        <a href="javascript:;" class="a-btn" onclick="$('form').submit()">合并</a>
                    </div>
                </div>
                <div class="img-select">
                    <img src="/images/pdf.png" width="140" height="140" class="show-img" style="display:none" />
                    <p class="pdf-image"></p>
                    <div class="wp100 tp10">
                        <a href="javascript:;" class="a-btn down-btn" target="_blank" style="display:none;">保存</a>
                    </div>
                </div>
                <div id="tool-result" class="hide"></div>
            </form>
        </div>
        <div class="wwads-cn wwads-horizontal" data-id="102" style="max-width:100%"></div>
        <div class="tool-info">
            @*<h5>相关知识</h5>
                <p>本工具对图像进行处理，部分浏览器不支持。</p>*@
        </div>

    </div>
</div>

@section scripts{
    <script src="~/js/jquery-validate/jquery.unobtrusive-ajax.js"></script>
    <script src="~/js/public.js"></script>
}